<?php
require_once PATH_SITE.'cn/royan/php/values/ServerArea.class.php';
require_once PATH_SITE.'cn/royan/php/utils/builders/Builder.class.php';
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of BuilderArea
 *
 * @author yanr
 */
class BuilderArea extends Builder
{
    static private $__id;

    //put your code here
    public function __construct( $value )
    {
        $this->config = $value;
    }
    
    public function build() 
    {
        $this->obj = new ServerArea();
        $this->obj->__set( "id",    (int)self::$__id++ );
        $this->obj->__set( "name",  $this->config["name"] );
        $this->obj->__set( "rooms", array() );
        
        RETURN parent::build();
    }
}

?>
